package pe.gob.pnp.actions;

import com.opensymphony.xwork2.*;
import java.sql.*;
import java.util.*;
import pe.gob.pnp.despachadores.*;


/**
 *
 * @author Cesar Mamani Lipa
 * @date   01/04/2010
 */
public class ListaTipoPersonalPolicial extends ActionSupport{
    private List<TipoPersonalPolicial> lstTipoPersonalPolicial;

    @Override
    public String execute(){
        try{
            setLstTipoPersonalPolicial(TipoPersonalPolicialDespachador.obtenerTipoPersonalPolicial());
        }catch(SQLException ex){
            ex.printStackTrace();
            return ERROR;
        }
        return SUCCESS;
    }

    /**
     * @return the lstTipoPersonalPolicial
     */
    public List<TipoPersonalPolicial> getLstTipoPersonalPolicial() {
        return lstTipoPersonalPolicial;
    }

    /**
     * @param lstGrado the lstTipoPersonalPolicial to set
     */
    public void setLstTipoPersonalPolicial(List<TipoPersonalPolicial> lstTipoPersonalPolicial) {
        this.lstTipoPersonalPolicial = lstTipoPersonalPolicial;
    }

}
